package org.feiye.studyday14.practice;

public class Voter {
	public String name;

	public static int num = 0;

	public Voter(String name) {
		this.name = name;
	}


	public void vote(String person) {
		if (num >= 100) {
			System.out.println("停止投票！");
			return;
		}
		System.out.println(name + "投给了" + person);
		num++;
	}

}
